
<!-- 结束面包屑导航 -->
<!-- 开始页头区域 -->
<h1 class="page-header">订单信息 <small></small> </h1>
<!-- 结束页头区域 -->

<!-- begin invoice -->
<div class="invoice">
    <div class="invoice-company"> <span class="pull-right hidden-print">
    </span> 合约信息&nbsp;:&nbsp;</div>
    <div class="invoice-header">
        <div class="invoice-from">
            <table border="1" width="100%" height="100">
                <tr>
                    <td>方案ID：</td>
                    <td>${order.id!''}</td>
                    <td>点买人：</td>
                    <td>${order.userName!''}</td>
                    <td>投资人：</td>
                    <td>${order.investName!''}</td>
                    <td>状态：</td>
                    <td><#if order.status == 1>匹配中</#if>
                        <#if order.status == 2>交易中</#if>
                        <#if order.status == 3>持仓中</#if>
                        <#if order.status == 4>待平仓</#if>
                        <#if order.status == 5>平仓中</#if>
                        <#if order.status == 6>待结算</#if>
                        <#if order.status == 7>已结算</#if>
                        <#if order.status == 8>流单</#if>

                    </td>
                </tr>
                <tr>
                    <td>点买额度：</td>
                    <td>${order.tradeCredit!''} 万元</td>
                    <td>履约保证金：</td>
                    <td>${order.deposit!''}</td>
                    <td>止盈保证金：</td>
                    <td>${order.depositProfit!''}</td>
                    <td>综合费：</td>
                    <td>${order.paidFee!''}</td>
                </tr>
                <tr>
                    <td>发起时间：</td>
                    <td>${order.buyTime?string('yyyy-MM-dd HH:mm:ss')!''}</td>
                    <td>递延费用：</td>
                    <td>${order.paidDiyan!''}</td>
                    <td>未支付递延费：</td>
                    <td>${order.unpaidDiyan!''}</td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </div>
    </div>
</div>
<!-- begin invoice -->
<div class="invoice">
    <div class="invoice-company"> <span class="pull-right hidden-print">
    </span> 点买信息&nbsp;:&nbsp;</div>
    <div class="invoice-header">
        <div class="invoice-from">
            <table border="1" width="100%" height="100">
                <tr>
                    <td>股票名称：</td>
                    <td>${order.equityName!''}</td>
                    <td>股票代码</td>
                    <td>${order.equityCode!''}</td>
                    <td>点买价格</td>
                    <td>${order.buyPrice!''}</td>
                    <td>点买数量</td>
                    <td>${order.number!''}</td>
                </tr>
                <tr>
                    <td >点买时间</td>
                    <td>${order.buyTime?string('yyyy-MM-dd HH:mm:ss')!''}</td>
                    <td >点买成交时间</td>
                    <td>${order.buyDealTime?string('yyyy-MM-dd HH:mm:ss')!''}</td>
                    <td >成交价格</td>
                    <td>${order.buyDealPrice!''}</td>
                    <td>成交数量</td>
                    <td>${order.dealNumber!''}</td>
                </tr>
            </table>
        </div>
    </div>
</div>
<#if order.status = 6 || order.status = 7>
    <div class="invoice">
        <div class="invoice-company"> <span class="pull-right hidden-print">
        </span> 点卖信息&nbsp;:&nbsp;</div>
        <div class="invoice-header">
            <div class="invoice-from">
                <table border="1" width="100%" height="100">
                    <tr>
                        <td>平仓原因：</td>
                        <td><#if order.pingcangType?? && order.pingcangType == 1>手动平仓</#if>
                            <#if order.pingcangType?? && order.pingcangType == 2>止损平仓</#if>
                            <#if order.pingcangType?? && order.pingcangType == 3>递延费不足平仓</#if>
                            <#if order.pingcangType?? && order.pingcangType == 4>强制平仓</#if>
                            <#if order.pingcangType?? && order.pingcangType == 5>触发递延条件平仓</#if>
                        </td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>

                        <!--<td>点卖价格</td>-->
                        <!--<td>${order.sellPrice!''}</td>-->
                        <!--<td>点卖数量</td>-->
                        <!--<td>${order.sellNumber!''}</td>-->
                    </tr>
                    <tr>
                        <td>成交时间</td>
                        <td>${order.sellDealTime?string('yyyy-MM-dd HH:mm:ss')!''}</td>
                        <td>成交价格</td>
                        <td>${order.sellDealPrice!''}</td>
                        <td>成交数量</td>
                        <td>${order.sellDealNumber!''}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</#if>
<#if order.status = 7>
    <div class="invoice">
        <div class="invoice-company"> <span class="pull-right hidden-print">
        </span> 结算信息&nbsp;:&nbsp;</div>
        <div class="invoice-header">
            <div class="invoice-from">
                <table border="1" width="100%" height="100">
                    <tr>
                        <td>总盈亏</td>
                        <td> ${order.profitCount!} 元</td>
                        <td>点买人盈亏</td>
                        <#if order.profitCount?? && order.profitCount gt 0>
                        <td>${(order.profitCount!*0.9)?string("0.##")} 元</td>
                        <#else>
                            <td>0</td>
                        </#if>
                        <td>返还保证金</td>
                        <td>${order.deposit!} 元</td>
                    </tr>
                    <tr>
                        <td>结算时间</td>
                        <td>${order.settleTime?string('yyyy-MM-dd HH:mm:ss')!''}</td>
                        <td>投资人盈亏</td>
                        <td>${(order.profitCount!*0.1)?string("0.##")} 元</td>
                        <td>返还保证金</td>
                        <td>${order.depositProfit!} 元</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</#if>